package com.yxuan.springboot.service.impl;

import com.yxuan.springboot.mapper.AllProfessionalMapper;
import com.yxuan.springboot.model.AllProfessional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yxuan.springboot.model.SchoolMajorRelation;
import com.yxuan.springboot.service.SchoolMajorRelationService;

import java.util.List;

/**
 * 
 * @author zchao
 *    SchoolMajorRelation业务层实现类
 * @date 2023-05-27 14:46:21
 */
@Service
@Transactional
public class SchoolMajorRelationServiceImpl extends BaseServiceImpl<SchoolMajorRelation> implements SchoolMajorRelationService {

    @Autowired
    private AllProfessionalMapper allProfessionalMapper;

    @Override
    public List<AllProfessional> getTotalSpeBySchoolID(Long schoolID) {
        return allProfessionalMapper.queryTotalSpeBySchoolID(schoolID);
    }

    @Override
    public List<AllProfessional> getTotalProBySchoolID(Long schoolID) {
        return allProfessionalMapper.queryTotalProBySchoolID(schoolID);
    }


}
